package com.lxmes.base.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lxmes.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.lxmes.common.core.domain.BaseEntity;

/**
 * 单据编码规则对象 nc_document_code_rules
 * 
 * @author lx
 * @date 2023-05-25
 */
@ApiModel(value = "NcDocumentCodeRules", description = "单据编码规则对象")    
public class NcDocumentCodeRules extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @ApiModelProperty("主键ID")
    private Long id;

    /** 公司代码 */
    @Excel(name = "公司代码")
    @ApiModelProperty("公司代码")
    private String factoryCode;

    /** 公司名称 */
    @Excel(name = "公司名称")
    @ApiModelProperty("公司名称")
    private String factoryName;

    /** 表名 */
    @Excel(name = "表名")
    @ApiModelProperty("表名")
    private String tableName;

    /** 注释 */
    @Excel(name = "注释")
    @ApiModelProperty("注释")
    private String comment;

    /** 字段名 */
    @Excel(name = "字段名")
    @ApiModelProperty("字段名")
    private String fieldName;

    /** 字段释义 */
    @Excel(name = "字段释义")
    @ApiModelProperty("字段释义")
    private String fieldMeaning;

    /** 编码规则 */
    @Excel(name = "编码规则")
    @ApiModelProperty("编码规则")
    private String codingRule;

    /** 前缀 */
    @Excel(name = "前缀")
    @ApiModelProperty("前缀")
    private String prefix;

    /** 年 */
    @Excel(name = "年")
    @ApiModelProperty("年")
    private Long year;

    /** 月 */
    @Excel(name = "月")
    @ApiModelProperty("月")
    private Long month;

    /** 日 */
    @Excel(name = "日")
    @ApiModelProperty("日")
    private Long day;

    /** 顺序号 */
    @Excel(name = "顺序号")
    @ApiModelProperty("顺序号")
    private Long sequenceNumber;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFactoryCode(String factoryCode) 
    {
        this.factoryCode = factoryCode;
    }

    public String getFactoryCode() 
    {
        return factoryCode;
    }
    public void setFactoryName(String factoryName) 
    {
        this.factoryName = factoryName;
    }

    public String getFactoryName() 
    {
        return factoryName;
    }
    public void setTableName(String tableName) 
    {
        this.tableName = tableName;
    }

    public String getTableName() 
    {
        return tableName;
    }
    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }
    public void setFieldName(String fieldName) 
    {
        this.fieldName = fieldName;
    }

    public String getFieldName() 
    {
        return fieldName;
    }
    public void setFieldMeaning(String fieldMeaning) 
    {
        this.fieldMeaning = fieldMeaning;
    }

    public String getFieldMeaning() 
    {
        return fieldMeaning;
    }
    public void setCodingRule(String codingRule) 
    {
        this.codingRule = codingRule;
    }

    public String getCodingRule() 
    {
        return codingRule;
    }
    public void setPrefix(String prefix) 
    {
        this.prefix = prefix;
    }

    public String getPrefix() 
    {
        return prefix;
    }
    public void setYear(Long year) 
    {
        this.year = year;
    }

    public Long getYear() 
    {
        return year;
    }
    public void setMonth(Long month) 
    {
        this.month = month;
    }

    public Long getMonth() 
    {
        return month;
    }
    public void setDay(Long day) 
    {
        this.day = day;
    }

    public Long getDay() 
    {
        return day;
    }
    public void setSequenceNumber(Long sequenceNumber) 
    {
        this.sequenceNumber = sequenceNumber;
    }

    public Long getSequenceNumber() 
    {
        return sequenceNumber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("factoryCode", getFactoryCode())
            .append("factoryName", getFactoryName())
            .append("tableName", getTableName())
            .append("comment", getComment())
            .append("fieldName", getFieldName())
            .append("fieldMeaning", getFieldMeaning())
            .append("codingRule", getCodingRule())
            .append("prefix", getPrefix())
            .append("year", getYear())
            .append("month", getMonth())
            .append("day", getDay())
            .append("sequenceNumber", getSequenceNumber())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
